<?php
use think\facade\Route;

// 公共上传
Route::group('upload', function () {
    Route::post('putFile', 		'@putFile'); 			// 简单上传
    Route::get('fast', 			'@fast'); 				// 检测文件是否已经上传
    Route::get('chunk/check', 	'@checkChunk'); 		// 检测分片
    Route::post('chunk$', 		'@uploadChunk'); 		// 上传分片
    Route::post('chunk/merage', '@merageUploadChunks'); // 合并分片
	Route::post('editor/image', '@putEditorImage'); 	// 编辑器图片上传
})->prefix('\app\common\service\Upload')
    ->middleware([
        '\app\common\middleware\SchoolDomain'
    ]);
